﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:myBehaviors="clr-namespace:AzureTracer.Views.Behaviors" 
    xmlns:ec="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
    x:Name="userControl" 
    x:Class="AzureTracer.Views.Controls.SearchControl"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" RenderTransformOrigin="0.5,0.5">
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}" Margin="0,0,0,0">
		<TextBox x:Name="SearchTextBox" 
                 Text="{Binding SearchText, Mode=TwoWay}" 
                 RenderTransformOrigin="0.5,0.5" BorderThickness="2" Margin="0" Padding="0" VerticalAlignment="Top">
			<TextBox.BorderBrush>
				<SolidColorBrush Color="{StaticResource PhoneBackgroundColor}"/>
			</TextBox.BorderBrush>        	
			<i:Interaction.Behaviors>
				<myBehaviors:DataBindTextChangedBehavior/>
			</i:Interaction.Behaviors>
		</TextBox>
	</Grid>
</UserControl>
